package com.javalab._6feature._4exception;

/**
 * return finally 哪个先执行?
 */
public class _4ReturnFinally {
    public static void main(String[] args) {
        int i = returnFinally();
        System.out.println(i);
    }

    private static int returnFinally() {
        int i = 10;
        try {
            return i;
//            return i++;
//            return ++i;
        } finally {
            i = -1;
        }
    }
}
